<?php
class Admin_Model_Role extends Zend_Db_Table{
    protected $_name = 'role';
    protected $_primary = 'IDROLE';
    //protected $db;
    //public function __construct()
//    {
//        $this->db=Zend_Registry::get('db');
//    }
    public function getRole($id)
    {
        return $this->fetchRow("where IDPERSON=".$id);
    }
    public function listRole()
    {
        $data=$this->fetchAll();
        return $data;
        //$sql="select * from person";
        //$db = Zend_Registry::get('db');
        //return $db->fetchAll($sql)->toArray();
    }
    
}
?>